package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import static com.sky.enumeration.OperationType.INSERT;

@Mapper
public interface DishFlavorMapper {

    void insertBatch(List<DishFlavor> dishFlavor);

    void deleteDishFlavorByDishIdBatch(List<Long> ids);

    @Select("select * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> getDishFlavorById(Long id);
}
